﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="User_Account_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager runat="server" ID="smgrUser" EnablePartialRendering="true">
    </asp:ScriptManager>
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>
                        Change Reports User Password</h1>
                </td>
            </tr>
            <tr>
                <td width="150"><b>Old Password</b></td>
                <td>:&nbsp;&nbsp;
                    <asp:TextBox ID="txtOldPassword" runat="server" Width="150px" MaxLength="15" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server" ControlToValidate="txtOldPassword"
                            Display="Dynamic" ErrorMessage="Require password." Text=""
                            ValidationGroup="customer"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="150"><b>New Password</b></td>
                <td>:&nbsp;&nbsp;
                    <asp:TextBox ID="txtNewPassword" runat="server" Width="150px" MaxLength="15" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ControlToValidate="txtNewPassword"
                            Display="Dynamic" ErrorMessage="Require password." Text=""
                            ValidationGroup="customer"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revNewPassword" runat="server" ControlToValidate="txtNewPassword"
                            ValidationExpression="^\w*(?=\w*[A-Z]{2})\w{8,20}$" Display="Dynamic"
                            ErrorMessage="Password must be two upper and (8-15) characters long." ValidationGroup="customer"/>
                </td>
            </tr>
            <tr>
                <td width="150"><b>Confirm Password</b></td>
                <td>:&nbsp;&nbsp;
                    <asp:TextBox ID="txtConfirmPassword" runat="server" Width="150px" MaxLength="15" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="csvConfirmPassword" runat="server" ControlToCompare="txtNewPassword"
                            ControlToValidate="txtConfirmPassword" Display="Dynamic" ErrorMessage="Password and confirm password must be same."
                            Text="" ValidationGroup="customer"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" ValidationGroup="customer" OnClick="btnSubmit_Click" />&nbsp;
                    <asp:Button ID="btnClear" runat="server" Text="Clear" OnClick="btnClear_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnSignOut" runat="server" Text="SignOut" OnClick="btnSignOut_Click" />&nbsp;&nbsp;
                    <asp:Label runat="server" ID="lblError" ForeColor="Red"></asp:Label>
                    <asp:Label runat="server" ID="lblMessage" ForeColor="Green" Font-Bold="true"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

